package com.maiji.cloud.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.maiji.cloud.entities.login.KetonuriaChangeLog;

@Mapper
public interface KetonuriaChangeLogMapper extends BaseMapper<KetonuriaChangeLog>{
	/**
	 * 获得尿酮记录
	 * @param userId
	 * @return
	 */
	List<KetonuriaChangeLog> getListRecordKetonuria(@Param("userId")String userId,@Param("startTime")String startTime,@Param("endTime")String endTime); 

	/**
	 * 获得最新的尿酮记录
	 * @param userId
	 * @return
	 */
	KetonuriaChangeLog getLastRecordKetonuria(@Param("userId")String userId); 
}
